package ctrl.action.impl;

import java.io.IOException;
import java.security.InvalidParameterException;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import model.Model;
import model.beans.ItemBean;
import model.beans.ShoppingCartBean;
import model.beans.ShoppingCartItemBean;

import util.ProjectConstants;
import util.TimeCounter;

import ctrl.action.ServletAction;

public class MgmtServletAction implements ServletAction{
	ServletContext context;

	public MgmtServletAction(ServletContext context){
		this.context = context;
	}

	@Override
	public void processRequest(HttpServletRequest request,
			HttpServletResponse response) throws IOException, ServletException{
		
		String jsp = ProjectConstants.PAGEMGMT;
	
		context.getRequestDispatcher("/" + jsp + ".jspx").forward(request,response);		
	}

}
